package com.rainman.simpleredis.core.simplemq;

public class WorkerReturn {

    private Integer state;
    private String failMsg;


    public static final Integer StateSuc=200;
    public static final Integer StateRetry=300;//重试，
    public static final Integer StateRetryImm=350;//立即重试
    public static final Integer StateErr=500;

    public WorkerReturn(Integer state ){
        this(state,"");
    }

    public WorkerReturn(Integer state, String failMsg){
        this.failMsg=failMsg;
        this.state=state;
    }

    public Integer getState() {
        return state;
    }

    public String getFailMsg() {
        return failMsg;
    }

    public void setFailMsg(String failMsg) {
        this.failMsg = failMsg;
    }
}
